import request from '@/utils/request';
interface Login {
  accessor: string;
  password: string;
  captcha: string;
}

export const loginSubmit = (data: Login) => {
  return request.post('/api/login', data);
};

export const getCaptcha = () => {
  return request.get('/api/captcha');
};

export const getMenuList = () => {
  return request.get('/api/menu');
};
